package com.feasy.generator.generatorcode.domain;
import java.util.List;

/**
 * 代码生成-数据表
 * Description：
 * @author: chenlin
 * @email: chenlinxp@qq.com
 * @date: 2018-10-16 18:09:51
 * Modification History:  
 * Modified by :  
 */
public class Table {
    //表的名称
    private String tableName;
    //表的备注
    private String comments;
    //表的主键
    private Column pk;
    //表的列名(不包含主键)
    private List<Column> columns;

    //类名(第一个字母大写)，如：sys_user => SysUser
    private String className;
    //类名(第一个字母小写)，如：sys_user => sysUser
    private String classname;
    //构造函数的参数
    private String constructorParams;
    //是否生成移动端的crud接口
    private String  appInterface;
    //通用查询语句和app接口语句
    private String sqlcode;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Column getPk() {
        return pk;
    }

    public void setPk(Column pk) {
        this.pk = pk;
    }

    public List<Column> getColumns() {
        return columns;
    }

    public void setColumns(List<Column> columns) {
        this.columns = columns;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getConstructorParams() {
        return constructorParams;
    }

    public void setConstructorParams(String constructorParams) {
        this.constructorParams = constructorParams;
    }

    public String getAppInterface() {
        return appInterface;
    }

    public void setAppInterface(String appInterface) {
        this.appInterface = appInterface;
    }
    public String getSqlcode() {
		return sqlcode;
	}

	public void setSqlcode(String sqlcode) {
		this.sqlcode = sqlcode;
	}

	@Override
    public String toString() {
        return "TableDO{" +
                "tableName='" + tableName + '\'' +
                ", comments='" + comments + '\'' +
                ", pk=" + pk +
                ", columns=" + columns +
                ", className='" + className + '\'' +
                ", classname='" + classname + '\'' +
                '}';
    }
}
